import request from '@/utils/request'

/**
 * @description: 获取其他出库单清单
 * @param {*} data
 * @return {*}
 */
export function getQtckdOrderList(params) {
  return request({
    url: '/order/qtckd/list',
    method: 'get',
    params
  })
}

/**
 * @description: 保存其他出库单
 * @param {*} params
 * @return {*}
 */
export function saveQtckdOrder(data) {
  return request({
    url: '/order/qtckd/add',
    method: 'post',
    data
  })
}

/**
 * @description: 获取其他出库单详情
 * @param {*} params
 * @return {*}
 */
export function getQtckdDetail(params) {
  return request({
    url: '/order/qtckd/detail',
    method: 'get',
    params
  })
}

/**
 * @description: 单据更新
 * @param {*} params
 * @return {*}
 */
export function updateQtckd(data) {
  return request({
    url: '/order/qtckd/update',
    method: 'post',
    data
  })
}

/**
 * @description: 单据、反审核
 * @param {*} data
 * @return {*}
 */
export function examineQtckd(data) {
  return request({
    method: 'post',
    url: '/order/qtckd/examine',
    data
  })
}

/**
 * @description: 其他出库单删除
 * @param {*} data
 * @return {*}
 */
export function deleteQtckd(data) {
  return request({
    url: '/order/qtckd/delete',
    method: 'post',
    data
  })
}
